<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        .container{

            border: 1px solid red;

        }

        .son1{
            width: 200px;
            height: 400px;
            background-color: gold;
            float: left;
        }
        .son2{
            width: 200px;
            height: 300px;
            background-color: green;
            float: right;
        }

        .bottom{
            height: 150px;
            background-color: #4cae4c;


        }

        .clearfix{
            clear: both;
        }

        .h10{
            height: 10px;
        }
        .h20{
            height: 20px;
        }




        
        
    </style>
</head>
<body>


    <div class="container">

        <div class="son1"></div>
        <div class="son2"></div>

        <!--内墙法：多了一个无意义的标签-->
        <div class="clearfix"></div>


    </div>
    <!-- 隔墙法：多出一个无意义的标签-->
    <!--clear fix 浮动的修复-->
    <!--<div class="clearfix h10"></div>-->
    <!--<div class="cls"></div>-->

    <div class="bottom"></div>



</body>
</html>